package com.myspring.web.ws;

import com.myspring.integration.webservice.cxf.spring.service.HelloWorld;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Administrator on 2017/5/16.
 *
 * webservice不同应用之间的调用：http://www.cnblogs.com/xiujie/articles/4916548.html
 *
 * 参考asvn提供的webservice服务：http://localhost:8088/services/HelloWorld?wsdl
 */
@Controller
@RequestMapping("/ws")
public class OuterController {
//    @Resource
    private HelloWorld helloWorld;

    @RequestMapping("/hello")
    @ResponseBody
    public String show() {
        helloWorld.sayHi("rpc");

        return "ws";
    }
}
